The .bind()
method allows specifying the value of this
and, optionally, the values of some function arguments. However,
if this
is not used in the function body, calls to .bind()
do nothing and should be removed.
Calling .bind()
on arrow functions is a bug because the value of this
does not change when .bind()
is
applied to arrow functions.